﻿using GameFramework.WebServer;
using Geek.Server.Core.Utils;

namespace Server.Logic.Common.Utils
{
    public static class WebRequestExtensions
    {
        public static Task<T> Execute<T>(this WebServerReq<T> req, CancellationToken token = default) where T : WebServerResp, new()
        {
            return WebCenterUtils.SendAsync<T>(req, token);
        }
    }
}